/*
 * @Author: niuxb 951259738@qq.com
 * @Date: 2022-06-07 09:36:04
 * @LastEditors: niuxb 951259738@qq.com
 * @LastEditTime: 2022-06-24 14:46:44
 * @FilePath: /syq/src/router/index.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import Vue from 'vue'
import Router from 'vue-router'
import Layout from '@/views/layout/Layout';

Vue.use(Router)
export const constantRouterMap = [
  {
    path: '',
    redirect: '/tabview'
  },
  {  //tab页
    path:'/tabview',
    name: 'tabview',
    component:()=> import('@/views/tabview')
  },
  {
    path: '/drawup_tab/drawup_transition_tab',
    component: Layout,
    children: [
      {
        meta: {
          title: '商机列表',
          layoutName: 'drawup_transition_tab',
        },
        name: 'drawup_transition_tab',
        path: '',
        component: () =>
          import('@/views/drawup_tab/drawup_transition_tab')
      },
    ],
  },
  {
    path: '/getOrgAndUser',
    component: Layout,
    children: [{
      meta: {
        title: '政策宣讲'
      },
      name: 'getOrgAndUser',
      path: '',
      component: () =>
        import('@/components/GetOrgAndUser'),
    }]

  },{
    path:'/choseuser2',
    component:Layout,
    children:[
      {
        meta:{
          title:'选择候选人',
          layoutName:'choseuser2',
        },
        name:'choseuser2',
        path:'',
        component:()=>
        import('@/views/choseuser2')
      },
    ],
  },
  {
    path:'/bqjcxf',
    component:Layout,
    children:[
      {
        meta:{
          title:'标前决策（移动）.详情',
          layoutName:'bqjcxf',
        },
        name:'bqjcxf',
        path:'',
        component:()=>
          import('@/views/bqjcxf')
      },
    ],
  },
  {
    path: '/sztdzj/sztdzjDetail',
    component: Layout,
    children: [
      {
        meta: {
          title: '售中团队组建.详情',
          layoutName: 'sztdzjDetail',
        },
        name: 'sztdzjDetail',
        path: '',
        component: () =>
          import('@/views/sztdzj/sztdzjDetail')
      },
    ],
  },
  {
    path: '/sqtdzj',
    component: Layout,
    children: [
      {
        meta: {
          title: '售前团队组建.详情',
          layoutName: 'sqtdzj',
        },
        name: 'sqtdzj',
        path: '',
        component: () =>
          import('@/views/sqtdzj')
      },
    ],
  },
  {
    path: '/xmlcb',
    component: Layout,
    children: [
      {
        meta: {
          title: '项目里程碑.详情',
          layoutName: 'xmlcb',
        },
        name: 'xmlcb',
        path: '',
        component: () =>
          import('@/views/xmlcb')
      },
    ],
  },
  {
    path: '/xmjd/drawup_xmjd_tab',
    component: Layout,
    children: [
      {
        meta: {
          title: '项目进度列表',
          layoutName: 'drawup_xmjd_tab',
        },
        name: 'drawup_xmjd_tab',
        path: '',
        component: () =>
          import('@/views/xmjd/drawup_xmjd_tab')
      },
    ],
  },
  {
    path: '/xmjd',
    component: Layout,
    children: [
      {
        meta: {
          title: '项目进度.详情',
          layoutName: 'xmjd',
        },
        name: 'xmjd',
        path: '',
        component: () =>
          import('@/views/xmjd')
      },
    ],
  },
  {
    path: '/xmjdd',
    component: Layout,
    children: [
      {
        meta: {
          title: '项目交底.详情',
          layoutName: 'xmjdd',
        },
        name: 'xmjdd',
        path: '',
        component: () =>
          import('@/views/xmjdd')
      },
    ],
  },
  {
    path: '/xmlxsq',
    component: Layout,
    children: [
      {
        meta: {
          title: '项目立项申请.详情',
          layoutName: 'xmlxsq',
        },
        name: 'xmlxsq',
        path: '',
        component: () =>
          import('@/views/xmlxsq')
      },
    ],
  },
  {
    path: '/xmsqzc',
    component: Layout,
    children: [
      {
        meta: {
          title: '项目售前支撑.详情',
          layoutName: 'xmsqzc',
        },
        name: 'xmsqzc',
        path: '',
        component: () =>
          import('@/views/xmsqzc')
      },
    ],
  },
  {
    path: '/sjzxm',
    component: Layout,
    children: [
      {
        meta: {
          title: '商机转项目.详情',
          layoutName: 'sjzxm',
        },
        name: 'sjzxm',
        path: '',
        component: () =>
          import('@/views/sjzxm')
      },
    ],
  },
  {
    path: '/5Gxmrd',
    component: Layout,
    children: [
      {
        meta: {
          title: '5G项目.详情',
          layoutName: '5Gxmrd',
        },
        name: '5Gxmrd',
        path: '',
        component: () =>
          import('@/views/5Gxmrd')
      },
    ],
  }, 
  {
    path: '/xmjj',
    component: Layout,
    children: [
      {
        meta: {
          title: '项目交接.详情',
          layoutName: 'xmjj',
        },
        name: 'xmjj',
        path: '',
        component: () =>
          import('@/views/xmjj')
      },
    ],
  },
  {
    path: '/xmjj/xmjj_select_hyjy_tab',
    component: Layout,
    children: [
      {
        meta: {
          title: '选择会议纪要',
          layoutName: 'xmjj_select_hyjy_tab',
        },
        name: 'xmjj_select_hyjy_tab',
        path: '',
        component: () =>
          import('@/views/xmjj/xmjj_select_hyjy_tab')
      },
    ],
  },
  {
    path: '/xmjj/xmjj_dqtx_push',
    component: Layout,
    children: [
      {
        meta: {
          title: '验收到期提醒.详情',
          layoutName: 'xmjj_dqtx_push',
        },
        name: 'xmjj_dqtx_push',
        path: '',
        component: () =>
          import('@/views/xmjj/xmjj_dqtx_push')
      },
    ],
  },
  {
    path: '/zxgssp',
    component: Layout,
    children: [
      {
        meta: {
          title: '甄选公示审批.详情',
          layoutName: 'zxgssp',
        },
        name: 'zxgssp',
        path: '',
        component: () =>
          import('@/views/zxgssp')
      },
    ],
  },
  {
    path: '/ectp',
    component: Layout,
    children: [
      {
        meta: {
          title: '二次谈判.详情',
          layoutName: 'ectp',
        },
        name: 'ectp',
        path: '',
        component: () =>
          import('@/views/ectp')
      },
    ],
  },
  {
    path: '/xmkg',
    component: Layout,
    children: [
      {
        meta: {
          title: '项目开工.详情',
          layoutName: 'xmkg',
        },
        name: 'xmkg',
        path: '',
        component: () =>
          import('@/views/xmkg')
      },
    ],
  },
  {
    path: '/bqjcxe',
    component: Layout,
    children: [
      {
        meta: {
          title: '标前决策（专业公司）.详情',
          layoutName: 'bqjcxe',
        },
        name: 'bqjcxe',
        path: '',
        component: () =>
          import('@/views/bqjcxe')
      },
    ],
  },
  {
    path: '/bqjcxffcd',
    component: Layout,
    children: [
      {
        meta: {
          title: '标前决策（地市）.详情',
          layoutName: 'bqjcxffcd',
        },
        name: 'bqjcxffcd',
        path: '',
        component: () =>
          import('@/views/bqjcxffcd')
      },
    ],
  },
  {
    path: '/xxzdtosubmit',
    component: Layout,
    children: [{
      meta: {
        title: '支部近期学习重点递交'
      },
      name: 'xxzdtosubmit',
      path: '',
      component: () =>
        import('@/components/xxzdtosubmit'),
    }]

  },
  {
    path:'/fileview',
    component:Layout,
    children:[
      {
        meta:{
          title:'附件详情',
          layoutName:'fileview',
        },
        name:'fileview',
        path:'',
        component:()=>
        import('@/views/fileview')
      },
    ],
  },{
    path:'/xszsjdetail',
    component: Layout,
    children: [{
      meta: {
        title: '线索转商机流程详情',
        keepAlive: true
      },
      name: 'xszsjdetail',
      path: '',
      component: () =>
        import('@/views/xszsj/index'),
    }]
  
  },
  {
    path:'/srqrdetail',
    component: Layout,
    children: [{
      meta: {
        title: '收入确认流程详情',
        keepAlive: true
      },
      name: 'srqrdetail',
      path: '',
      component: () =>
        import('@/views/srqr/index'),
    }]
  
  },{
    path: '/srqrsubmit',
    component: Layout,
    children: [{
      meta: {
        title: '收入确认流程递交'
      },
      name: 'srqrsubmit',
      path: '',
      component: () =>
        import('@/views/srqr/submit'),
    }]

  },{
    path: '/sqbfdetail',
    component: Layout,
    children: [{
      meta: {
        title: '售前拜访流程'
      },
      name: 'sqbfdetail',
      path: '',
      component: () =>
        import('@/views/sqbfdetail'),
    }]

  },
  {
    path: '/getOrgAndUserDict',
    component: Layout,
    children: [{
      meta: {
        title: '选择候选人'
      },
      name: 'getOrgAndUserDict',
      path: '',
      component: () =>
        import('@/components/GetOrgAndUserDict'),
    }]

  },
  {
    path: '/qyzx_search',
    component: Layout,
    children: [{
      meta: {
        title: '企业致信'
      },
      name: 'qyzx_search',
      path: '',
      component: () =>
        import('@/views/qyzx_search'),
    }]
  },
  {
    path: '/qyzx_content_detail',
    component: Layout,
    children: [{
      meta: {
        title: '详情'
      },
      name: 'qyzx_content_detail',
      path: '',
      component: () =>
        import('@/views/qyzx_search/qyzx_content_detail'),
    }]
  },
  {
    path: '/xcdetail',
    component: Layout,
    children: [{
      meta: {
        title: '方案支撑流程'
      },
      name: 'xcdetail',
      path: '',
      component: () =>
        import('@/views/xcdetail'),
    }]
  },
  {
    path: '/xvvodetail',
    component: Layout,
    children: [{
      meta: {
        title: '支出合同创建流程'
      },
      name: 'xvvodetail',
      path: '',
      component: () =>
        import('@/views/xvvodetail'),
    }]
  },
  {
    path: '/xvvidetail',
    component: Layout,
    children: [{
      meta: {
        title: '收入合同创建流程'
      },
      name: 'xvvidetail',
      path: '',
      component: () =>
        import('@/views/xvvidetail'),
    }]
  },
  {
    path: '/midetail',
    component: Layout,
    children: [{
      meta: {
        title: '合同交底流程'
      },
      name: 'midetail',
      path: '',
      component: () =>
        import('@/views/midetail'),
    }]
  },
  {
    path:'/ywzcdetail',
    component: Layout,
    children: [{
      meta: {
        title: '业务支撑流程详情',
        keepAlive: true
      },
      name: 'ywzcdetail',
      path: '',
      component: () =>
        import('@/views/ywzc/index'),
    }]
  
  },
  {
    path:'/sjxydetail',
    component: Layout,
    children: [{
      meta: {
        title: '商机响应流程详情',
        keepAlive: true
      },
      name: 'sjxydetail',
      path: '',
      component: () =>
        import('@/views/sjxy/index'),
    }]

  },
  {
    path: '/xndetail',
    component: Layout,
    children: [{
      meta: {
        title: '开标关联流程'
      },
      name: 'xndetail',
      path: '',
      component: () =>
        import('@/views/xndetail'),
    }]
  },
  {
    path: '/bjdetail',
    component: Layout,
    children: [{
      meta: {
        title: '线索转商机流程'
      },
      name: 'bjdetail',
      path: '',
      component: () =>
        import('@/views/bjdetail'),
    }]
  },
  {
    path: '/xmdetail',
    component:Layout,
    children: [
      {
        meta:{
          title: '应标管理流程'
        },
        name: 'xmdetail',
        path: '',
        component:()=>
        import('@/views/xmdetail')
      }
    ],
  },
  // {
  //   path:'/getOrgAndUserDict',
  //   name: 'getOrgAndUserDict',
  //   component:()=>
  //   import('@/views/GetOrgAndUserDict')
  // }
  {
    path: '/xbdetail',
    component:Layout,
    children: [
      {
        meta:{
          title: '应标支撑流程'
        },
        name: 'xbdetail',
        path: '',
        component:()=>
        import('@/views/xbdetail')
      }
    ],
  },
  {
    path: '/padetail',
    component: Layout,
    children: [{
      meta: {
        title: '方案创建流程'
      },
      name: 'padetail',
      path: '',
      component: () =>
        import('@/views/padetail'),
    }]
  },
  {
    path: '/tadetail',
    component: Layout,
    children: [{
      meta: {
        title: '交资交维流程'
      },
      name: 'tadetail',
      path: '',
      component: () =>
        import('@/views/tadetail'),
    }]
  },
  {
    path: '/zodetail',
    component: Layout,
    children: [{
      meta: {
        title: '售中任务申请流程'
      },
      name: 'zodetail',
      path: '',
      component: () =>
        import('@/views/zodetail'),
    }]
  },
  {
    path: '/zodetailinfo',
    component: Layout,
    children: [{
      meta: {
        title: '查看落地任务'
      },
      name: 'zodetailinfo',
      path: '',
      component: () =>
        import('@/views/zodetail/zodetailinfo'),
    }]
  },
  {
    path: '/zrdetail',
    component: Layout,
    children: [{
      meta: {
        title: '通用任务申请流程'
      },
      name: 'zrdetail',
      path: '',
      component: () =>
        import('@/views/zrdetail'),
    }]
  },
  {
    path: '/qxdetail',
    component: Layout,
    children: [{
      meta: {
        title: '权限申请流程'
      },
      name: 'qxdetail',
      path: '',
      component: () =>
        import('@/views/qxdetail'),
    }]
  },
  {
    path: '/qxdetailinfo',
    component: Layout,
    children: [{
      meta: {
        title: '查看详情'
      },
      name: 'qxdetailinfo',
      path: '',
      component: () =>
        import('@/views/qxdetail/qxdetailinfo'),
    }]
  },
  {
    path: '/apcdetail',
    component: Layout,
    children: [{
      meta: {
        title: '项目变更流程'
      },
      name: 'apcdetail',
      path: '',
      component: () =>
        import('@/views/apcdetail'),
    }]
  },
  {
    path: '/apcdetail/apc_append_lcb',
    component: Layout,
    children: [{
      meta: {
        title: '项目变更.里程碑',
      },
      name: 'apc_append_lcb',
      path: '',
      component: () =>
        import('@/views/apcdetail/apc_append_lcb'),
    }]
  },
  {
    path: '/arzdetail',
    component: Layout,
    children: [{
      meta: {
        title: '调账申请流程'
      },
      name: 'arzdetail',
      path: '',
      component: () =>
        import('@/views/arzdetail'),
    }]
  },
  {
    path: '/xsdetail',
    component: Layout,
    children: [{
      meta: {
        title: 'CA证书申请'
      },
      name: 'xsdetail',
      path: '',
      component: () =>
        import('@/views/xsdetail'),
    }]
  },
  {
    path: '/xtdetail',
    component: Layout,
    children: [{
      meta: {
        title: 'CA证书归还'
      },
      name: 'xtdetail',
      path: '',
      component: () =>
        import('@/views/xtdetail'),
    }]
  },{
    path: '/seletesjlist',
    component: Layout,
    children: [{
      meta: {
        title: 'shangjixuanze'
      },
      name: 'seletesjlist',
      path: '',
      component: () =>
        import('@/views/seletesjlist'),
    }]
  },{
    path: '/sjwhdetail',
    component: Layout,
    children: [{
      meta: {
        title: '新增商机维护'
      },
      name: 'sjwhdetail',
      path: '',
      component: () =>
        import('@/views/sjwhdetail'),
    }]
  },{
    path: '/hzhbzxdetail',
    component: Layout,
    children: [{
      meta: {
        title: '合作伙伴甄选应答报名'
      },
      name: 'hzhbzxdetail',
      path: '',
      component: () =>
          import('@/views/hzhbzxdetail'),
    }]
  },{
    path: '/sjwhaddTable',
    component: Layout,
    children: [{
      meta: {
        title: '新增'
      },
      name: 'sjwhaddTable',
      path: '',
      component: () =>
        import('@/views/sjwhdetail/addPage'),
    }]
  },
  {
    path: '/xxxydetail',
    component: Layout,
    children: [{
      meta: {
        title: '合同变更流程'
      },
      name: 'xxxydetail',
      path: '',
      component: () =>
        import('@/views/xxxydetail'),
    }]
  },{
    path: '/shystb',
    component: Layout,
    children: [{
      meta: {
        title: '三化预算填报'
      },
      name: 'shystb',
      path: '',
      component: () =>
          import('@/views/shystb'),
    }]
  },
  {
    path: '/getitlist',
    component: Layout,
    children: [{
      meta: {
        title: '项目复杂度计算'
      },
      name: 'getitlist',
      path: '',
      component: () =>
          import('@/views/getitlist'),
    }]
  },
  {
    path: '/xmdj',
    component: Layout,
    children: [{
      meta: {
        title: '售中售后阶段项目定级'
      },
      name: 'xmdj',
      path: '',
      component: () =>
          import('@/views/xmdj'),
    }]
  },
  {
    path: '/sjypdetail',
    component: Layout,
    children: [{
      meta: {
        title: '商机研判流程'
      },
      name: 'sjypdetail',
      path: '',
      component: () =>
          import('@/views/sjypdetail'),
    }]
  },{
    path: '/pmsdetail',
    component: Layout,
    children: [{
      meta: {
        title: 'PMS投资需求流程'
      },
      name: 'pmsdetail',
      path: '',
      component: () =>
          import('@/views/pmsdetail'),
    }]
  },{
    path: '/htbdetail',
    component: Layout,
    children: [{
      meta: {
        title: '合同资产流程'
      },
      name: 'htbdetail',
      path: '',
      component: () =>
          import('@/views/htbdetail'),
    }]
  },{
    path: '/xkndetail',
    component: Layout,
    children: [{
      meta: {
        title: '大单奖励评审'
      },
      name: 'xkndetail',
      path: '',
      component: () =>
          import('@/views/xkndetail'),
    }]
  },{
    path: '/xkdetail',
    component: Layout,
    children: [{
      meta: {
        title: '大单奖励评审'
      },
      name: 'xkdetail',
      path: '',
      component: () =>
          import('@/views/xkdetail'),
    }]
  },{
    path: '/rnlsdetail',
    component: Layout,
    children: [{
      meta: {
        title: '项目融场景打标'
      },
      name: 'rnlsdetail',
      path: '',
      component: () =>
          import('@/views/rnlsdetail'),
    }]
  },{
    path: '/idfdetail',
    component: Layout,
    children: [{
      meta: {
        title: '激励申报流程'
      },
      name: 'idfdetail',
      path: '',
      component: () =>
          import('@/views/idfdetail'),
    }]
  },{
    path: '/idfsdetail',
    component: Layout,
    children: [{
      meta: {
        title: '激励申报流程'
      },
      name: 'idfsdetail',
      path: '',
      component: () =>
          import('@/views/idfsdetail'),
    }]
  },{
    path: '/zdpddetail',
    component: Layout,
    children: [{
      meta: {
        title: '重大项目派单流程'
      },
      name: 'zdpddetail',
      path: '',
      component: () =>
          import('@/views/zdpddetail'),
    }]
  },{
    path: '/aadetail',
    component: Layout,
    children: [{
      meta: {
        title: '项目审计流程'
      },
      name: 'aadetail',
      path: '',
      component: () =>
          import('@/views/aadetail'),
    }]
  },{
    path: '/scdetail',
    component: Layout,
    children: [{
      meta: {
        title: '项目停工流程'
      },
      name: 'scdetail',
      path: '',
      component: () =>
          import('@/views/scdetail'),
    }]
  },{
    path: '/sfdetail',
    component: Layout,
    children: [{
      meta: {
        title: '复工申请流程'
      },
      name: 'sfdetail',
      path: '',
      component: () =>
          import('@/views/sfdetail'),
    }]
  },{
    path: '/sydetail',
    component: Layout,
    children: [{
      meta: {
        title: '延期申请流程'
      },
      name: 'sydetail',
      path: '',
      component: () =>
          import('@/views/sydetail'),
    }]
  },{
    path: '/zzdetail',
    component: Layout,
    children: [{
      meta: {
        title: '终止申请流程'
      },
      name: 'zzdetail',
      path: '',
      component: () =>
          import('@/views/zzdetail'),
    }]
  }
];

export default new Router({
  routes: constantRouterMap,
  scrollBehavior(to, from, savedPosition) {
    if (savedPosition) {
      return savedPosition
    } else {
      return {
        x: 0,
        y: 0
      }
    }
  }
})